package com.lee.config;

import com.lee.HelloService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description TODO
 * @Author winston
 * @DateTime 2021/11/24
 */
@Configuration
@EnableConfigurationProperties(HelloServiceConfigurationProperties.class)
public class HelloServiceAutoConfiguration {

	@Bean
	@ConditionalOnMissingBean(HelloService.class)
	public HelloService helloService() {
		return new HelloService(".");
	}
}
